ct=`ps -ef | grep ims_manage.py | grep -v grep | awk '{print $2}' |wc -l`
if [ 0 -ne $ct ]
then
  ps -ef | grep ims_manage.py | grep -v grep | awk '{print $2}' |xargs kill -9
fi

cd /root/wl_ims
rm -rf /root/wl_ims/logs/*
export LANG=zh_CN.UTF-8
export PYTHONIOENCODING=utf-8
# web
source /root/pyenv/bin/activate && nohup python ims_manage.py > web.log 2>&1 &
